/*
 * SupplierWebService.java
 * 
 * Created: Aug 4, 2015
 * 
 * Copyright (c) ExpertPB 2015
 * All information contained herein is, and remains the property of
 * ExpertPB and its suppliers, if any.
 */
package com.emex.app.shared.ws;

import com.emex.app.shared.data.Repayment;
import com.emex.app.shared.data.RepaymentExample;
import com.emex.app.shared.data.Supplier;
import com.emex.app.shared.data.SupplierMoney;
import com.emex.app.shared.data.SupplierMoneyExample;
import java.util.List;
import javax.jws.WebMethod;
import javax.jws.WebService;

/**
 *
 * @author Sergey
 */
@WebService(targetNamespace = "http://emex.com/Supplier")
public interface SupplierWebService {

    @WebMethod
    public int deleteSupplierByPrimaryKey(Integer id);

    @WebMethod
    public Supplier insertSupplier(Supplier record);

    @WebMethod
    public List<Supplier> getAllSuppliers();

    @WebMethod
    public Supplier updateSupplier(Supplier record);

    @WebMethod
    public Supplier selectSupplierByPrimaryKey(Integer id);

    @WebMethod
    public int deleteSupplierMoney(Integer id);

    @WebMethod
    public SupplierMoney updateSupplierMoney(SupplierMoney record);

    @WebMethod
    public SupplierMoney insertSupplierMoney(SupplierMoney record);

    @WebMethod
    public List<SupplierMoney> getPaymentsFromClientBySupplierId(Integer id);

    @WebMethod
    public List<SupplierMoney> getPaymentsForSupplierBySupplierId(Integer id);

    @WebMethod
    public List<SupplierMoney> getPaymentsByShopBySupplierId(Integer id);

    @WebMethod
    public List<SupplierMoney> getReturnedPaymentsBySupplierId(Integer id);

    @WebMethod
    public int deleteRepayment(Integer id);

    @WebMethod
    public Repayment insertRepayment(Repayment record);

    @WebMethod
    public Repayment updateRepayment(Repayment record);

    @WebMethod
    public List<Repayment> getRepaymetsForSupplier(Integer supplierId);
}
